//
//  NSString+CL.m
//  IntegralMall
//
//  Created by 朱跃龙 on 2017/11/1.
//  Copyright © 2017年 朱跃龙. All rights reserved.
//

#import "NSString+CL.h"

@implementation NSString (CL)

+ (NSString *)phone:(NSString *)phone{
    
    if (phone.length == 11) {
        
       return [phone stringByReplacingCharactersInRange:NSMakeRange(3, 4) withString:@"****"];
        
    }
    
    return phone;
    
}

@end
